<!DOCTYPE html>
<html lang="zh-cn">
   <head>
      <meta charset="utf-8">
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <title>后台管理中心</title>
       <link rel="stylesheet" href="__STATIC__/admin/js/bootstrap/css/bootstrap.css">
       <link href="__STATIC__/admin/css/AdminLTE.css" rel="stylesheet"
             type="text/css" />
      <!--[if lt  IE 9]>
      <script src="____STATIC__/admin/js/html5shiv.min.js"></script>
      <script src="____STATIC__/admin/js/respond.min.js"></script>
      <![endif]-->
      <script src="____STATIC__/admin/js/jquery.min.js"></script>
      <script src="____STATIC__/admin/js/bootstrap/js/bootstrap.min.js"></script>
      <script src="____STATIC__/admin/js/common.js"></script>
      <script src="____STATIC__/admin/js/plugins.js"></script>
   </head>
   <script>
   function del(id){
	   Plugins.confirm({title:'信息提示',content:'您确定要删除该角色吗?',okText:'确定',cancelText:'取消',okFun:function(){
		   Plugins.closeWindow();
		   Plugins.waitTips({title:'信息提示',content:'正在操作，请稍后...'});
		   $.post("{:url('Admin/auth/addrole')}",{id:id},function(data,textStatus){
					var json = WST.toJson(data);
					if(json.status=='1'){
						Plugins.setWaitTipsMsg({content:'操作成功',timeout:1000,callback:function(){
						   location.reload();
						}});
					}else{
						Plugins.closeWindow();
						Plugins.Tips({title:'信息提示',icon:'error',content:'操作失败!',timeout:1000});
					}
				});
	   }});
   }
   </script>
   <body class='wst-page'>
       <div class='wst-tbar' style='text-align:right;height:25px;'>
       <a class="btn btn-success glyphicon glyphicon-plus"href="{:url('Admin/auth/addrole')}" style='float:right'>新增</a>
       </div>
      <div class="wst-body"> 
        <table class="table table-hover table-striped table-bordered wst-list">
           <thead>
             <tr>
               <th width='40'>&nbsp;</th>
               <th>角色名称</th>
               <th width='150'>操作</th>
             </tr>
           </thead>
           <tbody>
           {volist name="row" id="v"}
             <tr>
               <td>{$v.id}</td>
               <td>{$v.title}</td>
               <td>
               <a class="btn btn-default glyphicon glyphicon-pencil" href="{:url('Admin/auth/addrole')}?id={$v.id}">修改</a>&nbsp;
               <button type="button" class="btn btn-default glyphicon glyphicon-trash">刪除</button>
               </td>
             </tr>
             {/volist}
             <tr>
                <td colspan='5' align='center'>{$page}</td>
             </tr>
           </tbody>
        </table>
       </div>
   </body>
</html>